<?php
function getState($user){ 
	include('dataBaseConnection.php');
	$query = "SELECT updated FROM users WHERE user = '$user'"; 
    $result = mysqli_query($connection, $query); 
	$row = mysqli_fetch_array($result);
	if ($row['updated'] == 1) {
		return "updated";
	}else{
		return "not-updated";
	}
}
?>